@layout("/common/_form.html",{js:["/assets/nanSellerProducts/nanSellerProducts_edit.js"],plugins:["ue"],css:["/assets/common/module/formSelects/formSelects-v4.css"]}){

<form class="layui-form" id="nanSellerProductsForm" lay-filter="nanSellerProductsForm">
    <div class="layui-fluid" style="padding-bottom: 75px;">
        <div class="layui-card">
            <div class="layui-card-header">基本信息</div>
            <div class="layui-card-body">
                <div class="layui-form-item layui-row">
                    <input name="id" type="hidden"/>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label layui-form-required">状态</label>
                        <div class="layui-input-block">
                            <select id="isOnline" name="isOnline" lay-filter="isOnline" lay-verify="required">
                                <option value="">-请选择-</option>
                                <option value="0">下架</option>
                                <option value="1">上架</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label layui-form-required">类型</label>
                        <div class="layui-input-block">
                            <select id="type" name="type" lay-filter="type" lay-verify="required">
                                <option value="">-请选择-</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label layui-form-required">标题</label>
                        <div class="layui-input-block">
                            <input id="title" name="title" placeholder="请输入标题" type="text" class="layui-input" lay-verify="required" required />
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label layui-form-required">主图</label>
                        <div class="layui-upload">
                            <button type="button" class="layui-btn layui-icon layui-icon-picture" id="thumb">上传图片</button>
                            <div class="layui-upload-wrap">
                                <input type="hidden" name="thumb" lay-verify="required" required/>
                                <img class="layui-upload-img" id="thumbImgPreview">
                            </div>
                            <div class="nan-tips" id="imgTip"></div>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12" id="adImgDiv" style="display:none;">
                        <label class="layui-form-label">广告图</label>
                        <div class="layui-upload">
                            <button type="button" class="layui-btn layui-icon layui-icon-picture" id="adImg">上传图片</button>
                            <div class="layui-upload-wrap">
                                <input type="hidden" name="adImg"/>
                                <img class="layui-upload-img" id="adImgPreview">
                            </div>
                            <div class="nan-tips">备注：广告图建议上传尺寸：750px*399px</div>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label ">外站链接</label>
                        <div class="layui-input-block">
                            <input id="link" name="link" placeholder="请输入外站链接" type="text" class="layui-input"  />
                            <div class="nan-tips">备注：外站链接需包含https://或http://前缀</div>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label layui-form-required">详情</label>
                        <div class="layui-input-block">
                            <script id="container" name="content" type="text/plain"></script>
                            <div class="nan-tips">备注：商品详情页上传图片的建议宽度 > 706px</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group-bottom text-center">
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
        <button type="reset" class="layui-btn layui-btn-primary" id="cancel">&emsp;取消&emsp;</button>
    </div>

</form>

@}
